package com.lqq.componment;

import javax.swing.*;

public class OrderBox extends Box{
    static int width=280;
    static int height=108;
    static int x;
    static int y;


    public OrderBox(int axis) {
        super(axis);
    }

    public static Box creatOrderBox(int x,int y){
        OrderBox.x=x;
        OrderBox.y=y;

        Box box=Box.createHorizontalBox();
        box.setBounds(OrderBox.x,OrderBox.y,OrderBox.width,OrderBox.height);
        JLabel imgLab=new JLabel("图片");
        JLabel txtLab=new JLabel("txt");
        box.add(Box.createHorizontalStrut(20));
        box.add(imgLab);
        box.add(Box.createHorizontalStrut(10));
        box.add(txtLab);
        box.add(Box.createHorizontalStrut(10));
        return box;
    }

}
